<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<title>Person</title>
<link rel="stylesheet" type="text/css" href="css/frame.css" />

<meta http-equiv="Expires" content="Fri, Jan 01 1900 00:00:00 GMT"/>
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<meta http-equiv="content-language" content="es"/>
<script language="javascript" src="js/interlineado.js"></script>
<script language="javascript" src="person/person.js"></script>
</head>
<body onLoad="javascript:alternate('person');" style="padding-left:4px; padding-bottom:5px;">
	<form id="PersonForm" method="post">
	<h2>People List</h2>
		
	<display:table name="personList" id="person" requestURI="/person.list.fc" class="grid" pagesize="${pageSize}" >
		<display:column title="Id" headerClass="grid-header" sortable="true">
			<c:out value="${person.personKey.id}"/>
		</display:column>
		<display:column title="Name" headerClass="grid-header" sortable="true">
			<c:out value="${person.name}"/>
		</display:column>
		<display:column title="Action" headerClass="grid-header" style="width:60px;text-align:center">
			<input type="image" src="img/update.png" title="Update person" onclick="loadUpdatePerson(${person.personKey.id});" style="border-width:0px;" />
			<input type="image" src="img/delete.png" title="Delete person" onclick="if(!deletePerson(${person.personKey.id}))return false;" style="border-width:0px;" />
		</display:column>
	</display:table>
	
	<br/>
	<br/>

	<a title="New person" class="link-button" href="javascript:loadCreatePerson();">New</a>
	</form>
</body>
</html>